//
//  MYXbalanceTopCell.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/12/1.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYXbalanceTopCell.h"
#import "UIView+Additions.h"
#import "MYXRedListController.h"
@interface MYXbalanceTopCell ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *backTopLayoutCons;


@end
@implementation MYXbalanceTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.moneyLabel.text=[MYXMemberMdel sharedInstance].userinfo.user_money;
    if (IS_IPHONE_X) {
        self.backTopLayoutCons.constant = 54;
    }
}
- (IBAction)backButton:(id)sender {
     [[self viewController].navigationController popViewControllerAnimated:YES];
}
- (IBAction)dealButton:(id)sender {
    MYXRedListController *MYXRedList=[[MYXRedListController alloc]init];
    MYXRedList.navigationItem.title = @"余额明细";
    [[self viewController].navigationController pushViewController:MYXRedList animated:YES];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
